package model

import "broker/interface/imodel"

/**
 * @Description
 * @Author huan.wang
 * @Date 2021/4/26 10:44 下午
 **/

type TopicFilter struct {
	Filter string
	Qos    byte
}

func NewTopicFilter(filter string, qos byte) imodel.ITopicFilter {
	return &TopicFilter{Filter: filter, Qos: qos}
}

func (t TopicFilter) GetFilter() string {
	return t.Filter
}

func (t TopicFilter) GetQos() byte {
	return t.Qos
}
